Skip to content

Build the standalone SDK on Windows with MinGW-w64 - #697

Draft
Shfdis wants to merge 2 commits into
mainfrom
codex/windows-mingw-cmake-20261116
Draft

Shfdis wants to merge 2 commits into
mainfrom
codex/windows-mingw-cmake-20261116

Conversation

@Shfdis

@Shfdis Shfdis commented Nov 16, 2026 •

Copy link
Copy Markdown
Collaborator

Windows MinGW builds require platform adaptations in imported utility code and standalone CMake settings. Generate compatibility copies under the build directory (mingw-compat/util), select Windows libc compatibility sources and system libraries, normalize root macros, and provide MinGW presets and dependency instructions. Reject OpenSSL 4.x, which is incompatible with the pinned gRPC.

All repository changes are confined to root CMake files, cmake/, and README.md. Imported util/, library/ (including YT), contrib/, and SDK source directories are untouched. CMake adapts eight utility files only in the build tree, redirects source/include/forced-include paths consistently, and exports build-interface include paths to SDK consumers. It rejects unexpected import changes and preserves generated file timestamps on unchanged configurations. The YT declaration ordering issue is handled with a compiler forced include. No MSVC changes remain.

Requires upstream PR ydb-platform/ydb#59557 and the normal import of those SDK-only source changes. They handle gRPC Windows header ordering and explicit generic path conversion in five examples; they were applied only in a disposable integration checkout for validation.

Validation on official SDK 3.27.0, base c1ac575, Windows x64 / MinGW-w64 GCC 16.2 / Release:

  • Full SDK and all 15 enabled examples build successfully, exit 0.
  • Reconfigure and incremental full build succeed with no work remaining.
  • Runtime probe passes: ordinary/strict/uneven/empty/subview Base64, raw string-buffer iterators, CPUID/AVX, current stack bounds, directory errno, GUID formatting across 32 bit positions, noexcept concepts, and TLS isolation.
  • pagination, secondary_index, secondary_index_builtin, ttl, and bulk_upsert_simple run with --help, all exit 0.
  • Consumer object with cleared local include/options/definitions compiles the public driver header using only the linked SDK CMake target's usage requirements.
  • Adapter checks verify unchanged source hashes, stable output timestamps, and explicit rejection of an incompatible imported-source pattern.
  • git diff --check and CMake preset parsing pass; imported-directory diff is empty in both source and integration checkouts.

Validation covers the combined CMake and companion SDK source changes. MSVC, optional plugins, installation/packaging, and backend integration tests are outside this validation.

@codecov

codecov Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 58.29%. Comparing base (c1ac575) to head (85372ae).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #697      +/-   ##
==========================================
- Coverage   58.29%   58.29%   -0.01%     
==========================================
  Files         294      294              
  Lines       34389    34389              
==========================================
- Hits        20048    20047       -1     
- Misses      14341    14342       +1     
Flag Coverage Δ
sdk 58.29% <ø> (-0.01%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@Shfdis Shfdis changed the title Configure standalone Windows builds for MinGW-w64 Build the standalone SDK on Windows with MinGW-w64 Nov 16, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant